package com.xy.lang.domain;

import java.io.Serializable;

public class IdCodeName<TId> implements Serializable {

    private static final long serialVersionUID = -1L;

    /**
     *
     */
    protected TId id;
    /**
     *
     */
    protected String code;
    /**
     *
     */
    protected String name;

    public IdCodeName() {

    }

    /**
     *
     */
    public IdCodeName(TId id, String code, String name) {
        this.id = id;
        this.code = code;
        this.name = name;
    }

    @Override
    public String toString() {
        return "IdCodeName{" +
                "id=" + id +
                ", code=" + code +
                ", name=" + name +
                '}';
    }

    public TId getId() {
        return id;
    }

    public void setId(TId id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
